导航菜单
首页 >  Navbar NextUI  > [BUG]

[BUG]

NextUI Version

2.4.0

Describe the bug

After updating to 2.4.0, I am seeing the Navbar component with shouldHideOnScroll set to true resulting in the Navbar disappearing after a few scrolls going up & down. Or, if it doesn't disappear, it reverts to sticky behavior. This happens even on the NextUI component documentation page under the 'Hide on scroll' section. A page refresh brings it back.

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

1- Go to https://nextui.org/docs/components/navbar#hide-on-scroll2- Start scrolling up and down a few times3- Navbar disappears or goes to sticky4- Tested on Chrome, Edge, and both mobile/desktop.

Expected behavior

As a user, the Navbar should hide on scroll, but reappear right when I scroll back up, and should always be at the very top if I have not scrolled or if I returned the scroll all the way to the top.

Screenshots or Videos

hideonscroll_issue

Navbar_scroll_issue.mp4 Operating System Version

Windows 11, Android 14

Browser

Chrome

相关推荐: